-- msg_object_updated
-- Create by panyl
-- 通知我的游戏数据

return function(lpc)
    local dbase = lpc.dbase;

    if ME ~= nil and ME.user ~= nil then
        ME.user.dbase:aborb(dbase)

        -- 装备
        if dbase.equipments then
            ME.user.equipments = dbase.equipments;
        end

        -- 技能信息
        if dbase.skills then
            ME.user.skills = dbase.skills;
        end

        -- 佩戴的技能
        if dbase.skills_option ~= nil then
            ME.user.skillOption = dbase.skills_option;
        end

        -- 已激活的天赋
        if dbase.talents ~= nil then
            ME.user.talents = dbase.talents;
        end

        -- 佩戴的天赋
        if dbase.talents_option ~= nil then
            ME.user.talentsOption = dbase.talents_option;
        end

        for attrib, _ in pairs(dbase) do
            EventMgr.fire(event.USER_INFO_UPDATED, attrib);
        end
    end
end
